From 8d5fe70c7e52656b2f89d0acfb1aed23bf583041 Mon Sep 17 00:00:00 2001 From: Lorenz Diener Date: Mon, 7 May 2018 00:53:13 +0200 Subject: Fix some bugs, update tests --- tests/cassettes/test_status_post[None-public].yaml | 24 +++++++++++----------- 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'tests/cassettes/test_status_post[None-public].yaml') diff --git a/tests/cassettes/test_status_post[None-public].yaml b/tests/cassettes/test_status_post[None-public].yaml index 8c5979e..a1f3978 100644 --- a/tests/cassettes/test_status_post[None-public].yaml +++ b/tests/cassettes/test_status_post[None-public].yaml @@ -1,6 +1,6 @@ interactions: - request: - body: status=Toot%21&visibility=public + body: visibility=public&status=Toot%21 headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] @@ -12,22 +12,22 @@ interactions: method: POST uri: http://localhost:3000/api/v1/statuses response: - body: {string: '{"id":"99979652189331630","created_at":"2018-05-06T01:00:23.311Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"ja","uri":"http://localhost:3000/users/mastodonpy_test/statuses/99979652189331630","content":"\u003cp\u003eToot!\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/99979652189331630","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py + body: {string: '{"id":"99984774310657294","created_at":"2018-05-06T22:43:00.699Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"ja","uri":"http://localhost:3000/users/mastodonpy_test/statuses/99984774310657294","content":"\u003cp\u003eToot!\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/99984774310657294","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John - Lennon","locked":true,"created_at":"2018-04-18T20:04:06.511Z","note":"\u003cp\u003eI - walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg","avatar_static":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg","header":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg","header_static":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg","followers_count":0,"following_count":0,"statuses_count":129},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}'} + Lennon","locked":true,"created_at":"2018-05-07T00:38:05.405Z","note":"\u003cp\u003eI + walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg","avatar_static":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg","header":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg","header_static":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg","followers_count":0,"following_count":1,"statuses_count":3},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}'} headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"eb07b2cc38eca1546b310f779364213a"] + ETag: [W/"97662956fe59c71f2936cadcc1266352"] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] - X-Request-Id: [bacc850e-de8d-4566-af1f-d47d7bce887a] - X-Runtime: ['0.265528'] + X-Request-Id: [a3903e2d-6cda-42fe-9b0c-818ac3584a65] + X-Runtime: ['0.508262'] X-XSS-Protection: [1; mode=block] - content-length: ['1402'] + content-length: ['1400'] status: {code: 200, message: OK} - request: body: null @@ -39,19 +39,19 @@ interactions: Content-Length: ['0'] User-Agent: [python-requests/2.9.1] method: DELETE - uri: http://localhost:3000/api/v1/statuses/99979652189331630 + uri: http://localhost:3000/api/v1/statuses/99984774310657294 response: body: {string: '{}'} headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"00f90054b2e1a60d2adbdf5bff3d15c9"] + ETag: [W/"d3228d6dc30c85b680ec38afe342e6ed"] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] - X-Request-Id: [3d018b4e-5527-48eb-9895-cc6e734ed85c] - X-Runtime: ['0.069149'] + X-Request-Id: [0f85821a-b518-4235-a9c4-ef2d6caae1b5] + X-Runtime: ['0.142043'] X-XSS-Protection: [1; mode=block] content-length: ['2'] status: {code: 200, message: OK} -- cgit v1.2.3